\<%@ page pageEncoding="UTF-8"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
\<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
\<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%  //权限判断 %>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
    <tr>
        <th class="w50 taCenter">序号</th>
    <% var count = 0; %>
	<% for ( fieldModel in fieldList ) { %>
		<% if ( fieldModel.isShowInList ) { %>
			<% count++; %>
	    <th>${fieldModel.comments}</th>
	   	<% } %>
	<% } %>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="\${pageBean.resultList }" varStatus="var">
    <tr>
        <td style="text-align: center;">\${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	<% for ( fieldModel in fieldList ) { %>
		<% if ( fieldModel.isShowInList ) { %>
	   	<td title="\${model.${fieldModel.fieldName} }">\${model.${fieldModel.fieldName} }</td>
		<% } %>
	<% } %>
	
        <td>
        	<!-- href改为data-url -->
            <a data-url="\${ctxPathA }/${baseURL!}/show" shieldParams="{'id':'\${model.id }'}" class="shieldDialog shield-icon show" viewTitle="${modelComments!}详情" data-icon-title="查看${modelComments!}详情"
               viewWidth="800"></a>
            <a data-url="\${ctxPathA }/${baseURL!}/toAddOrUpdate" shieldParams="{'id':'\${model.id }'}"  class="shieldDialog shield-icon update" viewTitle="修改${modelComments!}" data-icon-title="修改${modelComments!}"
               viewWidth="800"></a>
            <a data-url="\${ctxPathA }/${baseURL!}/del" shieldParams="{'id':'\${model.id }'}"  class="shieldAjax shield-icon del" viewTitle="确定要删除该条记录吗?"></a>
        </td>
    </tr>
</c:forEach>
<c:if test="\${empty pageBean.resultList }">
    <!-- 无数据时展示，有数据时展示上面的列表, nodatatr_plugin自动处理列合并数-->
    <tr class="nodatatr_plugin">
        <td colspan="${count!0}" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
\<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>